DEW.appRouter = Backbone.Router.extend({
    routes: {
        "home" : "displayLayout",
        "details/:id" : "displayDetails",
        "*actions" : "defaultRoute"
    },
    
    initialize: function()
    {

    },

    displayLayout: function() {
        var baseLayoutController = new DEW.BaseLayoutController();
        baseLayoutController.render();
    },
    
    displayDetails: function(id) {
        DEW.itemID = id;
        var detailsController = new DEW.DetailsController();
        detailsController.render();
    },

    defaultRoute: function() {
        this.displayLayout();
    }
});